package com.sen.patterns.structural.composite.ex2;

public class Manager {

	Manager mgr;
	Employee[] ely;
	String dept;

	public Manager(Employee[] ely, String dept) {
		this.ely = ely;
		this.dept = dept;
	}

	public Manager(Manager mgr, Employee[] ely, String dept) {
		this(ely, dept);
		this.mgr = mgr;
	}

	public String getDept() {
		return dept;
	}

	public Manager getManager() {
		return mgr;
	}

	public Employee[] getEmployee() {
		return ely;
	}

	public String toString() {
		return dept + " manager";
	}

}
